package net.dgi.common.match.impl;

/**
 * Viva IntelliJ IDEA.
 * User: Deian Date: Sep 30, 2010 Time: 11:11:51 PM
 */
public class MatchResult {
    protected Function function;
    protected MatchRequest matchRequest;
    protected Throwable status;

    public MatchResult(MatchAssignment task, Throwable status) {
        this.matchRequest = task.matchRequest;
        this.function = task.function;
        this.status = status;
    }

    public MatchResult(MatchRequest matchRequest, Throwable status) {
        this.matchRequest = matchRequest;
        this.status = status;
    }

    public Function getFunction() {
        return function;
    }

    public MatchRequest getMatchRequest() {
        return matchRequest;
    }

    public Throwable getStatus() {
        return status;
    }
}
